import request from '@/utils/request'

// 查询排行榜明细列表
export function listRankings(query) {
  return request({
    url: '/stats/rankings/list',
    method: 'get',
    params: query
  })
}

// 查询排行榜明细详细
export function getRankings(rankingsId) {
  return request({
    url: '/stats/rankings/' + rankingsId,
    method: 'get'
  })
}

// 新增排行榜明细
export function addRankings(data) {
  return request({
    url: '/stats/rankings',
    method: 'post',
    data: data
  })
}

// 修改排行榜明细
export function updateRankings(data) {
  return request({
    url: '/stats/rankings',
    method: 'put',
    data: data
  })
}

// 删除排行榜明细
export function delRankings(rankingsId) {
  return request({
    url: '/stats/rankings/' + rankingsId,
    method: 'delete'
  })
}
